package com.lnking.lnkingplace.mapper;

import com.lnking.lnkingplace.model.dto.placeType.PlaceTypeTreeDto;
import com.lnking.lnkingplace.model.entity.PlaceType;
import com.lnking.starter.mybatis.mapper.CustomBaseMapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangqt
 * @since 2022-09-14
 */
public interface PlaceTypeMapper extends CustomBaseMapper<PlaceType> {

    List<PlaceTypeTreeDto> queryList();

    @Update(" update place_type set del_flag = 1 where p_id = #{id} ")
    void updateDelFlag(String id);
}
